<template>
<div>
 <div class="page" v-for="(word,index) in wordContext" :key="index">
      <div class="top" >
        <div class="word">
          <p class="p1">{{word.title}}</p>
          <p class="p2">{{word.message1}}<br />{{word.message2}}</p>
          <button>立即选购</button>
        </div>
        <div
          class="img"
          :style="{'background-image': `url(${word.imgUrl})`}"
        ></div>
      </div>
      <!-- 轮播图 -->
      <FloorSwiper :index="index"></FloorSwiper>
    </div>
  </div>
</template>

<script>
import FloorSwiper from '../FloorSwiper/index'
export default {
  name: "FloorChildern",
  data(){
    return{

      wordContext:[
        // {
        //    title:'鞋类',
        //    message1:'足够爱动',
        //   message2:'活力同步',
        //   imgUrl:''
        // },
        {
          title:'高尔夫球运动',
          message1:'轻爽',
          message2:'POLO季',
          imgUrl:'https://pixl.decathlon.com.cn/s860168/panoply-pc-1.jpg'
        },
        {
          title:'舞蹈运动',
          message1:'舞力全开',
          message2:'酷炫有型',
          imgUrl:'https://pixl.decathlon.com.cn/s860169/panoply-pc-3.jpg'
        },
        {
          title:'钓鱼运动',
          message1:'贴近自然',
          message2:'尽享垂钓',
          imgUrl:'https://pixl.decathlon.com.cn/s860391/panoply-pc-3.jpg'
        }
      ]
     
    }
  },
  components:{
    FloorSwiper
  },

};
</script>

<style lang="less"  scoped>
 .page {
    margin-top: -19vh;
    padding: 0 19vw;
    position: relative;
    .top {
      height: 33vh;
      padding-top: 22vh;
      padding-bottom: 4vh;
      .word {
        position: absolute;
        padding-top: 5vh;
        width: 19vw;
        height: 33vh;
        color: black;
        .p1 {
          margin-bottom: 0;
          font-size: 22px;
          font-weight: 1000;
        }
        .p2 {
          margin: 0;
          font-size: 60px;
          font-weight: 1000;
        }
        button {
          position: absolute;
          width: 150px;
          height: 50px;
          border: 0;
          border-radius: 1vh;
          background-color: #ffea28;
          font-weight: 1000;
          bottom: 3vh;
        }
        button:hover{
          cursor: pointer;
          background-color: rgb(248, 208, 32);
        }
      }
      .img {
        position: absolute;
        right: 0vw;
        width: 60vw;
        height: 55.025vh;
        background-size:cover ;
        border-radius: 1vw ;
      }
    }
    //轮播图
   
  
  }
</style>
